.class public Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;
.super Ljava/lang/Object;
.source "AppStoreOpenOrderModel.java"

# interfaces
.implements Ljava/io/Serializable;


# static fields
.field private static final serialVersionUID:J = -0x122bc14692522980L


# instance fields
.field public appStoreModels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/AppStoreModel;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 10
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 17
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->appStoreModels:Ljava/util/List;

    return-void
.end method

.method public static parseAppStoreOpenOrderModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;
    .registers 6
    .param p0, "jo"    # Lorg/json/JSONObject;

    .prologue
    .line 20
    new-instance v3, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;

    invoke-direct {v3}, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;-><init>()V

    .line 21
    .local v3, "model":Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;
    const-string v4, "app_store"

    invoke-virtual {p0, v4}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 23
    .local v2, "ja":Lorg/json/JSONArray;
    if-nez v2, :cond_e

    .line 32
    :cond_d
    return-object v3

    .line 27
    :cond_e
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_f
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v1, v4, :cond_d

    .line 28
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    invoke-static {v4}, Lcom/brixd/niceapp/model/AppStoreModel;->parseAppStoreModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/model/AppStoreModel;

    move-result-object v0

    .line 29
    .local v0, "appStoreModel":Lcom/brixd/niceapp/model/AppStoreModel;
    iget-object v4, v3, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->appStoreModels:Ljava/util/List;

    invoke-interface {v4, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 27
    add-int/lit8 v1, v1, 0x1

    goto :goto_f
.end method
